<center>

<?php
$media = $this->item;
if ($media) {
?>
<script type="text/javascript" src="<?php echo JS_PATH;?>/jquery/jquery.media.js?v.92"></script>
<h3><?php echo $media->item_title;?></h3>
<br><br>
    <a href="<?=BASE_PATH . $media['item_image']?>" class="media"></a> 

<script type="text/javascript">
$(document).ready(function(){
		
		$.fn.media.defaults.flvPlayer = '<?php echo JS_PATH;?>/media/player-viral.swf';
		$.fn.media.defaults.mp3Player = '<?php echo JS_PATH;?>/media/player-viral.swf';
		$('.media').media({autoplay: true });
	});

</script>

<div id="winmedia">
Code: 
<textarea style="width:100%;height:100px;">
<object height="74" width="400" type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="NSPlaytemp">
    <param value="http://<?=$_SERVER['HTTP_HOST'] . BASE_PATH . $media['item_image']?>" name="Filename"/>
    <param value="1" name="ShowStatusBar"/>
    <param value="0" name="Volume"/>
    <param value="0" name="autostart"/>
    <embed height="74" width="400" autostart="0" bufferingtime="5" volume="0" showstatusbar="1" src="http://<?=$_SERVER['HTTP_HOST'] . BASE_PATH . $media['item_image']?>" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" enablefullscreencontrols="1" type="application/x-mplayer2" id="NSPlaytemp" style="opacity: 0.5;"/>
</object>

</textarea>
</div>

<?php
} // if
?>

</center>